import {
  set as setGlobalData,
  get as getGlobalData,
  clean as cleanGlobalData
} from '../utils/global'

import config from "@/config/index"
// let aMapFile = require('@/utils/amap-wx')

export default class Base {
  constructor() {
    // this.myAmapFun = new aMapFile.AMapWX({key: config.mapKey})
    this.setGlobalData = setGlobalData
    this.getGlobalData = getGlobalData
    this.cleanGlobalData = cleanGlobalData
  }

  get token() {
    return uni.getStorageSync('token')
  }

  set token(token) {
    uni.setStorageSync('token', token)
  }


}
